package selectors;

import java.util.LinkedList;

import strategies.Strategy;

import agents.Agent;

public class RandomStrategySelector extends StrategySelector {

	public RandomStrategySelector() {}
	
	
	@Override
	public Strategy selectStrategy(Agent agent) {
		LinkedList<Strategy> list = new LinkedList<Strategy>();
		list.addAll(agent.getStrategies().keySet());
		return list.get((int) (Math.random() * list.size()));
	}
}
